import List from "./../../../controls/lists";
import InterviewList from "./../../../controls/lists/interview";
import TabService from "./../../tabservice";

class LodgeService extends TabService {
	defaultData() {
		let info = {
			tabs: [
				{
					"name": "日常走访", active: true, type: List, option: {
						url: "/api/admin/lgb/consolation/queryPage",
						type: InterviewList,
						parameter: {
							zflx: 1
						}
					}
				},
				{
					"name": "节日慰问", active: false, type: List, option: {
						url: "/api/admin/lgb/consolation/queryPage",
						type: InterviewList,
						parameter: {
							zflx: 2
						}
					}
				},
				{
					"name": "生日看望", active: false, type: List, option: {
						url: "/api/admin/lgb/consolation/queryPage",
						type: InterviewList,
						parameter: {
							zflx: 3
						}
					}
				},
				{
					"name": "遗属看望", active: false, type: List, option: {
						url: "/api/admin/lgb/consolation/queryPage",
						type: InterviewList,
						parameter: {
							zflx: 4
						}
					}
				}
			]
		};
		this.setTabs(info.tabs);
		return info;
	}

	onupdate(current, data) {
		Object.assign(current, data);
	}
}

export default LodgeService;